package com.ftf.tp.blog.application.dto.command;

import com.ftf.tp.common.cqrs.annotation.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author tanghao
 * @date 2022/8/12
 */
@Data
@Command
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WriteAnswerCommand {

    /**
     * 问题id
     */
    @NotNull(message = "系统有误")
    @ApiModelProperty("问题id")
    private Long questionId;

    /**
     * 问题标题
     */
    @NotEmpty(message = "系统有误")
    @ApiModelProperty("问题标题")
    private String questionTitle;


    /**
     * 答案 markdown格式
     */
    @NotEmpty(message = "请输入的回答")
    @ApiModelProperty("答案 markdown格式")
    private String answerMarkDown;


}
